package com.hrt.datasender.datadao.model;

import java.util.Date;

import com.btcode.db.fieldtype.FieldType;
import com.btcode.orm.model.BaseModel;
import com.btcode.orm.model.Field;
import com.btcode.orm.model.IField;

public class BdSourceModel extends BaseModel {

    private static final long serialVersionUID = 1L;

    private static String tableName = "BD_SOURCE";

    public static IField dataId = new Field(BdSourceModel.class, "DATA_ID", FieldType.String, true);

    public static IField paramCodeBus = new Field(BdSourceModel.class, "PARAM_CODE_BUS", FieldType.String, false);

    public static IField measRe = new Field(BdSourceModel.class, "MEAS_RE", FieldType.Double, false);

    public static IField measZs = new Field(BdSourceModel.class, "MEAS_ZS", FieldType.Double, false);

    public static IField measMin = new Field(BdSourceModel.class, "MEAS_MIN", FieldType.Double, false);

    public static IField measMax = new Field(BdSourceModel.class, "MEAS_MAX", FieldType.Double, false);

    public static IField measAvg = new Field(BdSourceModel.class, "MEAS_AVG", FieldType.Double, false);

    public static IField status = new Field(BdSourceModel.class, "STATUS", FieldType.String, false);

    public static IField datatime = new Field(BdSourceModel.class, "DATATIME", FieldType.DateTime, false);

    public static IField createtime = new Field(BdSourceModel.class, "CREATETIME", FieldType.DateTime, false);

    public static IField datatimeText = new Field(BdSourceModel.class, "DATATIME_TEXT", FieldType.String, false);

    public static IField createtimeText = new Field(BdSourceModel.class, "CREATETIME_TEXT", FieldType.String, false);

    public static IField dataready = new Field(BdSourceModel.class, "DATAREADY", FieldType.String, false);

    public void setDataId(String value) {
        setFieldValue(dataId.getFieldName(), value);
    }

    public String getDataId() {
        Object value = getFieldValue(BdSourceModel.dataId.getFieldName());
        String result = getValueConver().converToString(value);
        return result;
    }

    public void setParamCodeBus(String value) {
        setFieldValue(paramCodeBus.getFieldName(), value);
    }

    public String getParamCodeBus() {
        Object value = getFieldValue(BdSourceModel.paramCodeBus.getFieldName());
        String result = getValueConver().converToString(value);
        return result;
    }

    public void setMeasRe(Double value) {
        setFieldValue(measRe.getFieldName(), value);
    }

    public Double getMeasRe() {
        Object value = getFieldValue(BdSourceModel.measRe.getFieldName());
        Double result = getValueConver().converToDouble(value);
        return result;
    }

    public void setMeasZs(Double value) {
        setFieldValue(measZs.getFieldName(), value);
    }

    public Double getMeasZs() {
        Object value = getFieldValue(BdSourceModel.measZs.getFieldName());
        Double result = getValueConver().converToDouble(value);
        return result;
    }

    public void setMeasMin(Double value) {
        setFieldValue(measMin.getFieldName(), value);
    }

    public Double getMeasMin() {
        Object value = getFieldValue(BdSourceModel.measMin.getFieldName());
        Double result = getValueConver().converToDouble(value);
        return result;
    }

    public void setMeasMax(Double value) {
        setFieldValue(measMax.getFieldName(), value);
    }

    public Double getMeasMax() {
        Object value = getFieldValue(BdSourceModel.measMax.getFieldName());
        Double result = getValueConver().converToDouble(value);
        return result;
    }

    public void setMeasAvg(Double value) {
        setFieldValue(measAvg.getFieldName(), value);
    }

    public Double getMeasAvg() {
        Object value = getFieldValue(BdSourceModel.measAvg.getFieldName());
        Double result = getValueConver().converToDouble(value);
        return result;
    }

    public void setStatus(String value) {
        setFieldValue(status.getFieldName(), value);
    }

    public String getStatus() {
        Object value = getFieldValue(BdSourceModel.status.getFieldName());
        String result = getValueConver().converToString(value);
        return result;
    }

    public void setDatatime(Date value) {
        setFieldValue(datatime.getFieldName(), value);
    }

    public Date getDatatime() {
        Object value = getFieldValue(BdSourceModel.datatime.getFieldName());
        Date result = getValueConver().converToDate(value);
        return result;
    }

    public void setCreatetime(Date value) {
        setFieldValue(createtime.getFieldName(), value);
    }

    public Date getCreatetime() {
        Object value = getFieldValue(BdSourceModel.createtime.getFieldName());
        Date result = getValueConver().converToDate(value);
        return result;
    }

    public void setDatatimeText(String value) {
        setFieldValue(datatimeText.getFieldName(), value);
    }

    public String getDatatimeText() {
        Object value = getFieldValue(BdSourceModel.datatimeText.getFieldName());
        String result = getValueConver().converToString(value);
        return result;
    }

    public void setCreatetimeText(String value) {
        setFieldValue(createtimeText.getFieldName(), value);
    }

    public String getCreatetimeText() {
        Object value = getFieldValue(BdSourceModel.createtimeText.getFieldName());
        String result = getValueConver().converToString(value);
        return result;
    }

    public void setDataready(String value) {
        setFieldValue(dataready.getFieldName(), value);
    }

    public String getDataready() {
        Object value = getFieldValue(BdSourceModel.dataready.getFieldName());
        String result = getValueConver().converToString(value);
        return result;
    }

    public String getTableName() {
        return tableName;
    }

    public boolean isNeedCache() {
        return false;
    }

}